﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Com2010r.aspx.cs" Inherits="Updms.Com.Com2010r" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms" TagPrefix="chartfx7" %>
<%@ Register Assembly="ChartFX.WebForms.Adornments" Namespace="ChartFX.WebForms.Adornments" TagPrefix="chartfxadornments" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms.Galleries" TagPrefix="chartfx7galleries" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Com2010r] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area" runat="server">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Com2010r" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<Triggers>
				<asp:PostBackTrigger ControlID="ibtn_excel"/>
			</Triggers>
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_excel" Text="엑셀" runat="server" CssClass="ibtn ibtn_excel" OnClick="ibtn_excel_Click"></asp:linkbutton>
				<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClick="ibtn_search_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_search_reg_dt" Text="날짜" runat="server" /></td>
					<td class="ctl" width="22%"><asp:textbox id="txt_search_reg_dt_from" runat="server" CssClass="ib_b_dt"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_search_reg_dt_from" class="ci_calendar" runat="server">&nbsp;~&nbsp;<asp:textbox id="txt_search_reg_dt_to" runat="server" CssClass="ib_b_dt"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_search_reg_dt_to" class="ci_calendar" runat="server"></td>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_search_nm" Text="이름" runat="server" /></td>
					<td class="ctl" width="22%">
						<ul class="horizontal">
							<li style="width:80%;"><asp:textbox id="txt_search_nm" runat="server" CssClass="ib_b" Width="98%"></asp:textbox></li>
							<li style="width:10%;padding:2px 0 0 4px;"><span id="search_user_info" onclick="goUserSearchPage(txt_search_nm.value)" class="sbtn sbtn_search_pop"></span></li>
						</ul>
					</td>
					<td class="lbl" width="11%"><asp:Literal ID="ltr_search_order_by" Text="정렬순서" runat="server" /></td>
					<td class="ctl" width="22%"><asp:DropDownList id="ddl_search_order_by" runat="server" CssClass="ddl"></asp:DropDownList></td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 디테일1 시작 -->
			<!-- 디테일1 끝 -->
			<!-- 리스트셋 시작 -->
			<table id="table_list_set" cellspacing="0" cellpadding="0" width="100%" border="0" runat="server">
				<tr>
					<td width="60%" valign="top"><div class="sub_title_icon"><asp:Literal id="ltr_stitle_list" Text="목록" runat="server" /></div>
						<asp:GridView ID="GridView1" DataKeyNames="Dir_Depth,View_Order" CssClass="table_gridview" GridLines="None" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound">
							<Columns>
								<asp:BoundField DataField="Pgm_Nm" HeaderText="프로그램명" HtmlEncode="False" >
									<ItemStyle Width="40%" HorizontalAlign="Left" Height="17" />
								</asp:BoundField>
								<asp:BoundField DataField="Pgm_Id" HeaderText="아이디" HtmlEncode="False" >
									<ItemStyle Width="12%" HorizontalAlign="Left" />
								</asp:BoundField>
								<asp:BoundField DataField="Nm" HeaderText="이름" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Left" Width="18%" />
								</asp:BoundField>
								<asp:BoundField DataField="Last_Access_Dt" HeaderText="마지막 접속일시"  DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Center" Width="20%" />
								</asp:BoundField>
								<asp:BoundField DataField="Cnt" HeaderText="접속횟수" DataFormatString="{0:#,##0}" HtmlEncode="False" >
									<ItemStyle HorizontalAlign="Right" Width="10%" />
								</asp:BoundField>
								<asp:BoundField DataField="Dir_Depth" HeaderText="Dir_Depth(X)" Visible="False" />
								<asp:BoundField DataField="View_Order" HeaderText="View_Order(X)" Visible="False" />
							</Columns>
							<EmptyDataTemplate>
								<div id="no_data"></div>
							</EmptyDataTemplate>
						</asp:GridView>
					</td>
					<td width="1%">&nbsp;</td>
					<td width="39%" valign="top">
						<!-- 접속챠트 시작(1행 = 22px) -->
						<div class="sub_title_icon"><asp:Literal id="ltr_stitle_chart" Text="챠트" runat="server" /></div>
						<table class="default">
							<tr>
								<td class="td_box" valign="top"><div style="height:24px"></div><center>
									<chartfx7:Chart ID="chart_access_count" runat="server" Height="800px" Palette="DarkPastels.Pastels" Width="480px" ImageSettings-Interactive="False" PlotAreaMargin-Top="-1">
										<AxisY>
											<Grids Major-Style="Dash" Interlaced="True"></Grids>
											<LabelsFormat CustomFormat="###,###,##0" />
										</AxisY>

										<AxisX Title-Text="">
										<Grids Major-Visible="False"></Grids>
										</AxisX>
										<SpecialObjects>
											<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
												Type="None">
											</chartfxadornments:SimpleBorder>
											<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
												ColorFrom="Transparent" EffectArea="0">
											</chartfxadornments:GradientBackground>
											<chartfx7galleries:Bar>
											</chartfx7galleries:Bar>
										</SpecialObjects>
										<AllSeries Gallery="Gantt" BarShape="Cylinder">
										</AllSeries>
										<LegendBox Dock="Top" Visible="False">
										</LegendBox>
									</chartfx7:Chart></center>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<!-- 리스트셋 끝 -->
			<!-- 설명 시작 -->
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:label id="lbl_pk" runat="server"></asp:label>
				<asp:Label id="lbl_search_flag" runat="server"></asp:Label>
				<asp:TextBox id="txt_search_user_id" runat="server" Width="98%" CssClass="ib_b"></asp:TextBox>
			</div>
			<!-- 히든값 끝 -->
			<!-- CalendarExtender 시작 -->
			<act:CalendarExtender ID="ce_search_reg_dt_from" 
				TargetControlID="txt_search_reg_dt_from"
				Format="yyyy-MM-dd"
				PopupButtonID="ci_search_reg_dt_from"
				EnableViewState="False"
				CssClass="calendar"
				runat="server">
			</act:CalendarExtender>
			<act:CalendarExtender ID="ce_search_reg_dt_to" 
				TargetControlID="txt_search_reg_dt_to"
				Format="yyyy-MM-dd"
				PopupButtonID="ci_search_reg_dt_to"
				EnableViewState="False"
				CssClass="calendar"
				runat="server">
			</act:CalendarExtender>
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>

<script type="text/javascript" language="javascript" defer="defer">
	//엔터검색
	function enterSearchUserInfo(evt) {
		var e = (!evt) ? window.event : evt;
		var keyCode = e.keyCode;

		if (keyCode == 13) {
			goUserSearchPage($("txt_search_nm").value);
		}
	}
	
</script>
</body>
</html>